package com.zjcode.cdcer.mapper;

import com.chinatechstar.component.commons.supports.PageData;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Collection;

import com.zjcode.cdcer.model.ZjcodeSysRegion;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface ZjcodeSysRegionMapper {

    int deleteByPrimaryKey(Long id);

    int insert(ZjcodeSysRegion record);

    int insertSelective(ZjcodeSysRegion record);

    ZjcodeSysRegion selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ZjcodeSysRegion record);

    int updateByPrimaryKey(ZjcodeSysRegion record);

    List<ZjcodeSysRegion> selectAllByCodeIn(@Param("idCollection") Collection<String> idCollection);

    List<LinkedHashMap<String, Object>> selectAllProvince();

    List<LinkedHashMap<String, Object>> getAllCities(@Param("pageData") PageData pageData);

    List<LinkedHashMap<String, Object>> getAllDistricts(@Param("pageData") PageData pageData);

    List<LinkedHashMap<String, Object>> getAllStreets(@Param("ids") List<String> ids);

    List<ZjcodeSysRegion> queryAllReginData();

    List<LinkedHashMap<String, Object>> allAreaData();
}
